package com.yh.ldzl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 退料检验单对象 qc_rqc
 * 
 * @author yanghuai
 * @date 2025-07-10
 */
public class QcRqc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检验单ID */
    private Long rqcId;

    /** 检验单编号 */
    @Excel(name = "检验单编号")
    private String rqcCode;

    /** 检验单名称 */
    @Excel(name = "检验单名称")
    private String rqcName;

    /** 检验模板ID */
    private Long templateId;

    /** 来源单据ID */
    private Long sourceDocId;

    /** 来源单据类型 */
    @Excel(name = "来源单据类型")
    private String sourceDocType;

    /** 来源单据编号 */
    @Excel(name = "来源单据编号")
    private String sourceDocCode;

    /** 来源单据行ID */
    private Long sourceLineId;

    /** 检验类型 */
    @Excel(name = "检验类型")
    private String rqcType;

    /** 物料ID */
    private Long materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 规格型号 */
    private String materialSfn;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 单位名称 */
    private String unitName;

    /** 批次ID */
    private Long batchId;

    /** 批次号 */
    private String batchCode;

    /** 检测数量 */
    @Excel(name = "检测数量")
    private BigDecimal quantityCheckNum;

    /** 不合格数 */
    private BigDecimal quantityUnqualifiedNum;

    /** 合格品数量 */
    private BigDecimal quantityQualifiedNum;

    /** 检测结果 */
    @Excel(name = "检测结果")
    private String checkResult;

    /** 检测日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectDate;

    /** 检测人员ID */
    private Long userId;

    /** 检测人员名称 */
    private String userName;

    /** 检测人员 */
    private String nickName;

    /** 单据状态(1/合格，2/不合格，3/待检) */
    @Excel(name = "单据状态(1/合格，2/不合格，3/待检)")
    private String status;

    /** 备注 */
    private String remark;

    /** 预留字段1 */
    private String attr1;

    /** 预留字段2 */
    private String attr2;

    /** 预留字段3 */
    private Long attr3;

    /** 预留字段4 */
    private Long attr4;

    /** 删除标志（0代表存在 1代表删除） */
    private String isDelete;

    public void setRqcId(Long rqcId) 
    {
        this.rqcId = rqcId;
    }

    public Long getRqcId() 
    {
        return rqcId;
    }

    public void setRqcCode(String rqcCode) 
    {
        this.rqcCode = rqcCode;
    }

    public String getRqcCode() 
    {
        return rqcCode;
    }

    public void setRqcName(String rqcName) 
    {
        this.rqcName = rqcName;
    }

    public String getRqcName() 
    {
        return rqcName;
    }

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }

    public void setSourceDocId(Long sourceDocId) 
    {
        this.sourceDocId = sourceDocId;
    }

    public Long getSourceDocId() 
    {
        return sourceDocId;
    }

    public void setSourceDocType(String sourceDocType) 
    {
        this.sourceDocType = sourceDocType;
    }

    public String getSourceDocType() 
    {
        return sourceDocType;
    }

    public void setSourceDocCode(String sourceDocCode) 
    {
        this.sourceDocCode = sourceDocCode;
    }

    public String getSourceDocCode() 
    {
        return sourceDocCode;
    }

    public void setSourceLineId(Long sourceLineId) 
    {
        this.sourceLineId = sourceLineId;
    }

    public Long getSourceLineId() 
    {
        return sourceLineId;
    }

    public void setRqcType(String rqcType) 
    {
        this.rqcType = rqcType;
    }

    public String getRqcType() 
    {
        return rqcType;
    }

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setMaterialSfn(String materialSfn) 
    {
        this.materialSfn = materialSfn;
    }

    public String getMaterialSfn() 
    {
        return materialSfn;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setBatchId(Long batchId) 
    {
        this.batchId = batchId;
    }

    public Long getBatchId() 
    {
        return batchId;
    }

    public void setBatchCode(String batchCode) 
    {
        this.batchCode = batchCode;
    }

    public String getBatchCode() 
    {
        return batchCode;
    }

    public void setQuantityCheckNum(BigDecimal quantityCheckNum) 
    {
        this.quantityCheckNum = quantityCheckNum;
    }

    public BigDecimal getQuantityCheckNum() 
    {
        return quantityCheckNum;
    }

    public void setQuantityUnqualifiedNum(BigDecimal quantityUnqualifiedNum) 
    {
        this.quantityUnqualifiedNum = quantityUnqualifiedNum;
    }

    public BigDecimal getQuantityUnqualifiedNum() 
    {
        return quantityUnqualifiedNum;
    }

    public void setQuantityQualifiedNum(BigDecimal quantityQualifiedNum) 
    {
        this.quantityQualifiedNum = quantityQualifiedNum;
    }

    public BigDecimal getQuantityQualifiedNum() 
    {
        return quantityQualifiedNum;
    }

    public void setCheckResult(String checkResult) 
    {
        this.checkResult = checkResult;
    }

    public String getCheckResult() 
    {
        return checkResult;
    }

    public void setInspectDate(Date inspectDate) 
    {
        this.inspectDate = inspectDate;
    }

    public Date getInspectDate() 
    {
        return inspectDate;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setAttr1(String attr1)
    {
        this.attr1 = attr1;
    }

    public String getAttr1() 
    {
        return attr1;
    }

    public void setAttr2(String attr2) 
    {
        this.attr2 = attr2;
    }

    public String getAttr2() 
    {
        return attr2;
    }

    public void setAttr3(Long attr3) 
    {
        this.attr3 = attr3;
    }

    public Long getAttr3() 
    {
        return attr3;
    }

    public void setAttr4(Long attr4) 
    {
        this.attr4 = attr4;
    }

    public Long getAttr4() 
    {
        return attr4;
    }

    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rqcId", getRqcId())
            .append("rqcCode", getRqcCode())
            .append("rqcName", getRqcName())
            .append("templateId", getTemplateId())
            .append("sourceDocId", getSourceDocId())
            .append("sourceDocType", getSourceDocType())
            .append("sourceDocCode", getSourceDocCode())
            .append("sourceLineId", getSourceLineId())
            .append("rqcType", getRqcType())
            .append("materialId", getMaterialId())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("materialSfn", getMaterialSfn())
            .append("unit", getUnit())
            .append("unitName", getUnitName())
            .append("batchId", getBatchId())
            .append("batchCode", getBatchCode())
            .append("quantityCheckNum", getQuantityCheckNum())
            .append("quantityUnqualifiedNum", getQuantityUnqualifiedNum())
            .append("quantityQualifiedNum", getQuantityQualifiedNum())
            .append("checkResult", getCheckResult())
            .append("inspectDate", getInspectDate())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("attr1", getAttr1())
            .append("attr2", getAttr2())
            .append("attr3", getAttr3())
            .append("attr4", getAttr4())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
